package tech.yixiyun.framework.kuafu.component.unregister;


import tech.yixiyun.framework.kuafu.boot.bootedhandler.IBootedHandler;
import tech.yixiyun.framework.kuafu.log.LOGGER;

/**
 * 启动后回调处理器注销
 * @author Yixiyun
 * @date 2021-04-10 19:15
 * @version 1.0
 */
public class BootedHandlerComponentUnregistrar implements IComponentUnregistrar {
    @Override
    public boolean unregister(Class clazz) {

        if (IBootedHandler.class.isAssignableFrom(clazz)) {
            LOGGER.warn("请重启程序");
            return false;
        }
        return true;
    }

}
